package com.xiaoxin.dubbo.api;

import com.xiaoxin.model.enums.CommentType;
import com.xiaoxin.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @author xiaoxiaode
 * @date 2021-09-05-22:46
 **/
public interface CommentApi {

    Integer save(Comment comment1);

    List<Comment> findComments(Integer page, Integer pagesize, CommentType comment, String movementId);

    boolean hasComment(String movementId, Long id, CommentType like);

    Integer remove(Comment comment);

    Integer saveComment(Comment comment, ObjectId publishId);

    Integer delete(Comment comment);

    List<Comment> findById(Long userId, CommentType like);

    boolean isLike(Long id, ObjectId videoId, CommentType like);

    void saveVideoLike(Comment comment);

    void deleteVideoLike(Comment comment,Long userId);
}
